package com.landinfo.service;

import com.landinfo.domain.DataType;
import com.landinfo.service.dto.DataType2DTO;
import com.landinfo.service.dto.DataTypeDTO;
import org.springframework.data.domain.Sort;

import java.util.List;

/**
 * Service Interface for managing DataType.
 */
public interface DataTypeService {

    /**
     * Save a dataType.
     *
     * @param dataTypeDTO the entity to save
     * @return the persisted entity
     */
    DataTypeDTO save(DataTypeDTO dataTypeDTO);

    /**
     *  Get all the dataTypes.
     *
     *  @return the list of entities
     */
    List<DataTypeDTO> findAll(Sort sort);

    List<DataType2DTO> queryByName(String name);

    /**
     *  Get the "id" dataType.
     *
     *  @param id the id of the entity
     *  @return the entity
     */
    DataType findOne(String id, Sort sort);

    /**
     *  Delete the "id" dataType.
     *
     *  @param id the id of the entity
     */
    void delete(String id);
}
